package day240512.p;

public class TV  {
    int price;
    String name;

    public TV(String name, int price) {
        this.name = name;
        this.price = price;


    }

    public String toString() {
        return this.name + "(" + this.price + ")";
    }
    /*public int compareTo(MyComparable other) {
        TV o = (TV) other;
        if (this.price == o.price) {
            return 0;
        } else if (this.price > o.price) {
            return 1;
        } else {
            return -1;
        }

    }*/
}